package com.credit.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.credit.common.ServerResponse;
import com.credit.mapper.administrativeMapper;
import com.credit.mapper.branchMapper;
import com.credit.mapper.brandMapper;
import com.credit.mapper.copyrightMapper;
import com.credit.mapper.creditLoanMapper;
import com.credit.mapper.enterpriseHonorMapper;
import com.credit.mapper.enterpriseInformationMapper;
import com.credit.mapper.frameworkMapper;
import com.credit.mapper.historicMapper;
import com.credit.mapper.jobMapper;
import com.credit.mapper.judicialMapper;
import com.credit.mapper.managementSystemMapper;
import com.credit.mapper.patentMapper;
import com.credit.mapper.patentTypeMapper;
import com.credit.mapper.publicWelfareMapper;
import com.credit.mapper.seniorExecutiveMapper;
import com.credit.mapper.shareholderMapper;
import com.credit.mapper.violationOperationMapper;
import com.credit.pojo.administrative;
import com.credit.pojo.branch;
import com.credit.pojo.brand;
import com.credit.pojo.copyright;
import com.credit.pojo.creditLoan;
import com.credit.pojo.enterpriseHonor;
import com.credit.pojo.enterpriseInformation;
import com.credit.pojo.framework;
import com.credit.pojo.historic;
import com.credit.pojo.job;
import com.credit.pojo.judicial;
import com.credit.pojo.managementSystem;
import com.credit.pojo.patent;
import com.credit.pojo.patentType;
import com.credit.pojo.publicWelfare;
import com.credit.pojo.seniorExecutive;
import com.credit.pojo.shareholder;
import com.credit.pojo.violationOperation;
import com.credit.service.IPublicCreditService;

@Service
public class PublicCreditServiceImpl implements IPublicCreditService{

	@Autowired
	private enterpriseInformationMapper enterpriseInformationMapper;
	
	@Autowired
	private shareholderMapper shareholderMapper;
	
	@Autowired
	private historicMapper historicMapper;
	
	@Autowired
	private branchMapper branchMapper;
	
	@Autowired
	private frameworkMapper frameworkMapper;
	
	@Autowired
	private managementSystemMapper managementSystemMapper;
	
	@Autowired
	private seniorExecutiveMapper executiveMapper;
	
	@Autowired
	private jobMapper jobMapper;
	
	@Autowired
	private brandMapper brandMapper;
	
	@Autowired
	private patentMapper patentMapper;
	
	@Autowired
	private patentTypeMapper patentTypeMapper;
	
	@Autowired
	private administrativeMapper administrativeMapper;
	
	@Autowired
	private judicialMapper judicialMapper;
	
	@Autowired
	private violationOperationMapper violationOperationMapper;
	
	@Autowired
	private copyrightMapper copyrightMapper;
	
	@Autowired
	private creditLoanMapper creditLoanMapper;
	
	@Autowired
	private enterpriseHonorMapper enterpriseHonorMapper;
	
	@Autowired
	private publicWelfareMapper publicWelfareMapper;
	
	
	
	
	public ServerResponse insertEnterpriseInformation(enterpriseInformation record) {
		
		return ServerResponse.createBySuccess(enterpriseInformationMapper.insertEnterpriseInformation(record));
	}

	public ServerResponse selectEnterpriseInformation(Integer id) {
		
		return ServerResponse.createBySuccess(enterpriseInformationMapper.selectEnterpriseInformation(id));
	}

	public ServerResponse updateEnterpriseInformation(enterpriseInformation record) {
		
		return ServerResponse.createBySuccess(enterpriseInformationMapper.updateEnterpriseInformation(record));
	}

	
	
	
	
	public ServerResponse insertShareholder(shareholder record) {
		
		return ServerResponse.createBySuccess(shareholderMapper.insertShareholder(record));
	}

	public ServerResponse selectShareholder(Integer id) {
		
		return ServerResponse.createBySuccess(shareholderMapper.selectShareholder(id));
	}

	public ServerResponse updateShareholder(shareholder record) {
	
		return ServerResponse.createBySuccess(shareholderMapper.updateShareholder(record));
	}

	
	public ServerResponse deleteShareholder(Integer id) {
		
		return ServerResponse.createBySuccess(shareholderMapper.deleteShareholder(id));
	}

	
	
	public ServerResponse insertHistoric(historic record) {
		
		return ServerResponse.createBySuccess(historicMapper.insertHistoric(record));
	}

	public ServerResponse selectHistoric(Integer id) {
		
		return ServerResponse.createBySuccess(historicMapper.selectHistoric(id));
	}

	public ServerResponse updateHistoric(historic record) {
		
		return ServerResponse.createBySuccess(historicMapper.updateHistoric(record));
	}

	public ServerResponse deleteHistoric(Integer id) {
		
		return ServerResponse.createBySuccess(historicMapper.deleteHistoric(id));
	}
	
	
	public ServerResponse insertBranch(branch record) {
		
		return ServerResponse.createBySuccess(branchMapper.insertBranch(record));
	}

	public ServerResponse selectBranch(Integer id) {
		
		return ServerResponse.createBySuccess(branchMapper.selectBranch(id));
	}

	public ServerResponse updateBranch(branch record) {
		
		return ServerResponse.createBySuccess(branchMapper.updateBranch(record));
	}
	
	public ServerResponse deleteBranch(Integer id) {
		
		return ServerResponse.createBySuccess(branchMapper.deleteBranch(id));
	}
	
	
	
	public ServerResponse insertFramework(framework record) {
		
		return ServerResponse.createBySuccess(frameworkMapper.insertFramework(record));
	}

	public ServerResponse selectFramework(Integer id) {
		
		return ServerResponse.createBySuccess(frameworkMapper.selectFramework(id));
	}

	public ServerResponse updateFramework(framework record) {
		
		return ServerResponse.createBySuccess(frameworkMapper.updateFramework(record));
	}

	
	
	
	
	public ServerResponse insertManagementSystem(managementSystem record) {
		
		return ServerResponse.createBySuccess(managementSystemMapper.insertManagementSystem(record));
	}

	public ServerResponse selectManagementSystem(Integer id) {
		
		return ServerResponse.createBySuccess(managementSystemMapper.selectManagementSystem(id));
	}

	public ServerResponse updateManagementSystem(managementSystem record) {
		
		return ServerResponse.createBySuccess(managementSystemMapper.updateManagementSystem(record));
	}

	public ServerResponse deleteManagementSystem(Integer id) {

		return ServerResponse.createBySuccess(managementSystemMapper.deleteManagementSystem(id));
	}
	
	
	
	public ServerResponse insertSeniorExecutive(seniorExecutive record) {
	
		return ServerResponse.createBySuccess(executiveMapper.insertSeniorExecutive(record));
	}

	public ServerResponse selectSeniorExecutive(Integer id) {
		
		return ServerResponse.createBySuccess(executiveMapper.selectSeniorExecutive(id));
	}

	public ServerResponse updateSeniorExecutive(seniorExecutive record) {
		
		return ServerResponse.createBySuccess(executiveMapper.updateSeniorExecutive(record));
	}

	public ServerResponse deleteSeniorExecutive(Integer id) {
		
		return ServerResponse.createBySuccess(executiveMapper.deleteSeniorExecutive(id));
	}
	
	
	
	public ServerResponse insertJob(job record) {
		
		return ServerResponse.createBySuccess(jobMapper.insertJob(record));
	}

	public ServerResponse selectJob(Integer id) {
		
		return ServerResponse.createBySuccess(jobMapper.selectJob(id));
	}

	public ServerResponse updateJob(job record) {
		
		return ServerResponse.createBySuccess(jobMapper.updateJob(record));
	}

	
	
	
	public ServerResponse insertBrand(brand record) {
		
		return ServerResponse.createBySuccess(brandMapper.insertBrand(record));
	}

	public ServerResponse selectBrand(Integer id) {
		
		return ServerResponse.createBySuccess(brandMapper.selectBrand(id));
	}

	public ServerResponse updateBrand(brand record) {
		
		return ServerResponse.createBySuccess(brandMapper.updateBrand(record));
	}

	public ServerResponse deleteBrand(Integer id) {
		
		return ServerResponse.createBySuccess(brandMapper.deleteBrand(id));
	}

	
	
	
	
	public ServerResponse insertPatentType(patentType record) {
	
		return ServerResponse.createBySuccess(patentTypeMapper.insertPatentType(record));
	}

	public ServerResponse selectPatentType(Integer id) {
		
		return ServerResponse.createBySuccess(patentTypeMapper.selectPatentType(id));
	}

	public ServerResponse updatePatentType(patentType record) {
		
		return ServerResponse.createBySuccess(patentTypeMapper.updatePatentType(record));
	}

	public ServerResponse deletePatentType(Integer id) {
		
		return ServerResponse.createBySuccess(patentTypeMapper.deletePatentType(id));
	}
	
	
	
	
	public ServerResponse deletePatent(Integer id) {
		
		return ServerResponse.createBySuccess(patentMapper.deletePatent(id));
	}

	public ServerResponse insertPatent(patent record) {
		
		return ServerResponse.createBySuccess(patentMapper.insertPatent(record));
	}

	public ServerResponse selectPatent(Integer id) {
		
		return ServerResponse.createBySuccess(patentMapper.selectPatent(id));
	}

	public ServerResponse updatePatent(patent record) {
		
		return ServerResponse.createBySuccess(patentMapper.updatePatent(record));
	}

	
	
	public ServerResponse deleteAdministrative(Integer id) {
		
		return ServerResponse.createBySuccess(administrativeMapper.deleteAdministrative(id));
	}

	public ServerResponse insertAdministrative(administrative record) {

		return ServerResponse.createBySuccess(administrativeMapper.insertAdministrative(record));
	}

	public ServerResponse selectAdministrative(Integer id) {

		return ServerResponse.createBySuccess(administrativeMapper.selectAdministrative(id));
	}

	public ServerResponse updateAdministrative(administrative record) {

		return ServerResponse.createBySuccess(administrativeMapper.updateAdministrative(record));
	}

	
	
	
	
	public ServerResponse deleteJudicial(Integer id) {
		
		return ServerResponse.createBySuccess(judicialMapper.deleteJudicial(id));
	}

	public ServerResponse insertJudicial(judicial record) {

		return ServerResponse.createBySuccess(judicialMapper.insertJudicial(record));
	}

	public ServerResponse selectJudicial(Integer id) {

		return ServerResponse.createBySuccess(judicialMapper.selectJudicial(id));
	}

	public ServerResponse updateJudicial(judicial record) {

		return ServerResponse.createBySuccess(judicialMapper.updateJudicial(record));
	}

	
	
	
	
	public ServerResponse deleteViolationOperation(Integer id) {
		
		return ServerResponse.createBySuccess(violationOperationMapper.deleteViolationOperation(id));
	}

	public ServerResponse insertViolationOperation(violationOperation record) {

		return ServerResponse.createBySuccess(violationOperationMapper.insertViolationOperation(record));
	}

	public ServerResponse selectViolationOperation(Integer id) {

		return ServerResponse.createBySuccess(violationOperationMapper.selectViolationOperation(id));
	}

	public ServerResponse updateViolationOperation(violationOperation record) {

		return ServerResponse.createBySuccess(violationOperationMapper.updateViolationOperation(record));
	}
	
	
	
	
	

	public ServerResponse deleteCreditLoan(Integer id) {
		
		return ServerResponse.createBySuccess(creditLoanMapper.deleteCreditLoan(id));
	}

	public ServerResponse insertCreditLoan(creditLoan record) {
		
		return ServerResponse.createBySuccess(creditLoanMapper.insertCreditLoan(record));
	}

	public ServerResponse selectCreditLoan(Integer id) {
		
		return ServerResponse.createBySuccess(creditLoanMapper.selectCreditLoan(id));
	}

	public ServerResponse updateCreditLoan(creditLoan record) {
		
		return ServerResponse.createBySuccess(creditLoanMapper.updateCreditLoan(record));
	}
	
	
	
	
	
	

	public ServerResponse deleteCopyright(Integer id) {
		
		return ServerResponse.createBySuccess(copyrightMapper.deleteCopyright(id));
	}

	public ServerResponse insertCopyright(copyright record) {
		
		return ServerResponse.createBySuccess(copyrightMapper.insertCopyright(record));
	}

	public ServerResponse selectCopyright(Integer id) {
		
		return ServerResponse.createBySuccess(copyrightMapper.selectCopyright(id));
	}

	public ServerResponse updateCopyright(copyright record) {
		
		return ServerResponse.createBySuccess(copyrightMapper.updateCopyright(record));
	}

	
	
	
	
	public ServerResponse deleteEnterpriseHonor(Integer id) {
		
		return ServerResponse.createBySuccess(enterpriseHonorMapper.deleteEnterpriseHonor(id));
	}

	public ServerResponse insertEnterpriseHonor(enterpriseHonor record) {
		
		return ServerResponse.createBySuccess(enterpriseHonorMapper.insertEnterpriseHonor(record));
	}

	public ServerResponse selectEnterpriseHonor(Integer id) {
		
		return ServerResponse.createBySuccess(enterpriseHonorMapper.selectEnterpriseHonor(id));
	}

	public ServerResponse updateEnterpriseHonor(enterpriseHonor record) {
		
		return ServerResponse.createBySuccess(enterpriseHonorMapper.updateEnterpriseHonor(record));
	}
	
	
	
	
	

	public ServerResponse deletePublicWelfare(Integer id) {
		
		return ServerResponse.createBySuccess(publicWelfareMapper.deletePublicWelfare(id));
	}

	public ServerResponse insertPublicWelfare(publicWelfare record) {
		
		return ServerResponse.createBySuccess(publicWelfareMapper.insertPublicWelfare(record));
	}

	public ServerResponse selectPublicWelfare(Integer id) {
		
		return ServerResponse.createBySuccess(publicWelfareMapper.selectPublicWelfare(id));
	}

	public ServerResponse updatePublicWelfare(publicWelfare record) {
		
		return ServerResponse.createBySuccess(publicWelfareMapper.updatePublicWelfare(record));
	}

	
	

	

	

	

	
	
}
